package ar.com.angrymachine.hunter.gameplay;

import java.awt.Image;


public class Chest implements Cloneable, Leveled
{
    public String name;
    public Image  icon;
    private int    level;
    public Treasure treasure;
    
    public Chest(String name, Image icon, int level)
    {
        this.name = name;
        this.icon = icon;
        this.level = level;
    }
    
    public Object clone()
    {
        try
        {
            return super.clone();
        }
        catch (CloneNotSupportedException e)
        {
            return null;
        }
    }
    
    public int getLevel()
    {
        return level;
    }
}
